package com.dx.architectureddd.infrastructure.config;

import com.dx.architectureddd.common.dp.policy.HandlerFactory;
import com.dx.architectureddd.domain.service.ThirdService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入第三方服务
 *
 * @author xin.deng
 * @date 2023/10/05
 */
@Configuration
public class ThirdPolicyConfig {

    @Bean
    public HandlerFactory<String, ThirdService> submitProcessHandlerFactory() {
        return new HandlerFactory<>(ThirdService.class);
    }
}
